<div>
    <div class="flex justify-start">
        <div style="padding-right:0px;width: 200px;" class="room-floor-unit-tree">
            <vc:create path="inspection/communityInspectionTree"></vc:create>
        </div>
        <div class="margin-top-xs margin-left-sm" style="flex-grow: 1;">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件" namespace="adminInspectionTask"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入实际巡检开始时间','adminInspectionTask')"
                                    v-model="adminInspectionTaskInfo.conditions.startTime"
                                    class=" form-control startTime">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入实际巡检结束时间','adminInspectionTask')"
                                    v-model="adminInspectionTaskInfo.conditions.endTime" class=" form-control endTime">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <select class="custom-select" v-model="adminInspectionTaskInfo.conditions.state">
                                <option selected value="">{{vc.i18n('请选择巡检状态','adminInspectionTask')}}</option>
                                <option v-for="(item,index) in adminInspectionTaskInfo.stateTypes" :key="index"
                                    :value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm"
                                v-on:click="_queryAdminInspectionTaskMethod()">
                                    <vc:i18n name="查询" namespace="adminInspectionTask"></vc:i18n>
                            </button>
                        </div>
                    </div>

                </div>
            </div>

            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="巡检任务" namespace="adminInspectionTask"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name="任务编码" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="小区名称" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="巡检计划" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <span>
                                        <vc:i18n name="巡检人" namespace="adminInspectionTask"></vc:i18n>
                                    </span><br />
                                    <span>
                                        <vc:i18n name="开始/结束时间" namespace="adminInspectionTask"></vc:i18n>
                                    </span>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="实际巡检时间" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="计划巡检人" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="当前巡检人" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="转移描述" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="巡检方式" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="巡检状态" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="操作" namespace="adminInspectionTask"></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="adminInspectionTask in adminInspectionTaskInfo.tasks">
                                <td class="text-center">{{adminInspectionTask.taskId}}</td>
                                <td class="text-center">{{adminInspectionTask.communityName}}</td>
                                <td class="text-center">{{adminInspectionTask.inspectionPlanName}}</td>
                                <td class="text-center">
                                    {{adminInspectionTask.planInsTime}}<br />{{adminInspectionTask.planEndTime}}
                                </td>
                                <td class="text-center">{{adminInspectionTask.actInsTime ? adminInspectionTask.actInsTime : '-'}}
                                </td>
                                <td class="text-center">
                                    {{adminInspectionTask.originalPlanUserName ? adminInspectionTask.originalPlanUserName : '-'}}
                                </td>
                                <td class="text-center">{{adminInspectionTask.planUserName}}</td>
                                <td class="text-center">
                                    {{adminInspectionTask.transferDesc ? adminInspectionTask.transferDesc : '-'}}
                                </td>
                                <td class="text-center">{{adminInspectionTask.signTypeName}}</td>
                                <td class="text-center text-danger font-bold" v-if="adminInspectionTask.state == '20200408'">
                                    {{adminInspectionTask.stateName}}
                                </td>
                                <td class="text-center" v-else>{{adminInspectionTask.stateName}}</td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openAdminInspectionTaskDetail(adminInspectionTask)">
                                            <vc:i18n name="详情" namespace="adminInspectionTask"></vc:i18n>
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>

                    </table>
                    <!-- 分页 -->
                    <div class="row margin-top-xs">
                        <div class="col-sm-9">
                            <div>
                                巡检任务是根据巡检计划，每天晚上2点钟自动生成，如果没有生成 请确认是否开启了定时任务，或者巡检计划是否设置正确
                            </div>
                        </div>
                        <div class="col-sm-3 float-right">
                            <vc:create path="frame/pagination"></vc:create>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>